public void start()
{
  String line;
  while(true){
    try{
      System.out.print(">");
      line = brInput.readLine();
      if (line.equals("quit")){
        conn.close();
        break;
      }
      else{
        doQuery(line);
      }
    }
    catch(IOException e){
      log("Bd wejcia-wyjcia: " + e);
      System.exit(-1);
    }
    catch(Exception e){
      log("Bd oglny: " + e);
      System.exit(-1);
    }
  }
}